﻿using System;
using System.Text;
using Netduino.Sensor.Unit;

namespace Netduino.Sensor
{
    /// <summary>
    /// Defines a sample which is a measurement of a sensor at a specific 
    /// moment in time.
    /// </summary>
    public interface ISample
    {
        /// <summary>
        /// Represents the value of the sample.
        /// </summary>
        double Value { get; set; }

        /// <summary>
        /// The unit of the value.
        /// </summary>
        IUnit Unit { get; set; }

        /// <summary>
        /// The time at which the sample value was taken.
        /// </summary>
        DateTime Time { get; }
    }
}
